<%@ page import="org.springframework.security.core.context.SecurityContextHolder" %>
<%@ page import="org.springframework.security.core.Authentication" %> 

<%@taglib prefix="s" uri="/struts-tags" %>
<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>

<head><title><s:text name="authentication"></s:text></title></head>
<div class="panel" style="width: 550px">
<div class="panelTitle"><s:text name="authentication"/></div>
<s:if test="error == 1">
  <font color="red">
    Your login attempt was not successful, try again.<br/><br/>
    Reason: ${SPRING_SECURITY_LAST_EXCEPTION.message}
  </font>
</s:if>

<form action="j_spring_security_check" method="POST">
	<label for="j_username"><s:text name="username"/>:</label>
	<input type="text" id="j_username" name="j_username"/>	
	<label for="j_password"><s:text name="password"/>:</label>
	<input type="password" id="j_password" name="j_password"/>
	<input type="submit" value="Login"/>
	<!-- label for="_spring_security_remember_me"><s:text name="remember"/></label -->
	<!-- input id="_spring_security_remember_me" name="_spring_security_remember_me" type="checkbox" value="true"/-->
	<a href="RegisterForm"><s:text name="register"/></a>
</form>
</div>